package com.homework.Demo6_14.Work2.h2;

public class Rect extends Shape {
    public double witdth;
    public double height;

    public double getWitdth() {
        return witdth;
    }

    public void setWitdth(double witdth) {
        this.witdth = witdth;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    @Override
    public double getArea() {

        return witdth*height;
    }
}
